<template>
  <div>
    <el-form :inline="true" :model="formInline" class="demo-form-inline">
    <el-form-item label="航班号">
      <el-input v-model="formInline.line" placeholder="航班号"></el-input>
    </el-form-item>
    <el-form-item label="闸机口">
      <el-select v-model="formInline.zhaji" placeholder="闸机口">
        <el-option label="闸机口一" value="1"></el-option>
        <el-option label="闸机口二" value="2"></el-option>
      </el-select>
    </el-form-item>
      <el-form-item label="行输线">
        <el-select v-model="formInline.hangshuxian" placeholder="行输线">
          <el-option label="行输线一" value="1"></el-option>
          <el-option label="行输线二" value="2"></el-option>
        </el-select>
      </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="onSubmit">提交</el-button>
    </el-form-item>
    </el-form>
  </div>
</template>
<script>
export default {
  data() {
    return {
      formInline: {
        line: '',
        zhaji: '',
        hangshuxian: ''
      }
    }
  },
  methods: {
    onSubmit() {
      this.$message({
        showClose: true,
        message: '没写借口',
        type: 'error'
      });
      console.log('submit!');
    }
  }
}
</script>